package com.xiaoKe.zhonghzu.global.tool;

import android.content.res.Resources;
import android.util.DisplayMetrics;

import com.xiaoKe.zhonghzu.global.base.BaseApplication;

/**
 * @ProjectName : xiaoke-pad-zhongzhu
 * @Author : Shijingna
 * @Time : 2024/7/31 10:17
 * @Description : 文件描述
 */
public class MeasureTool {
    /**
     * 屏幕度量
     * 获取宽
     */
    public static int widthPixels( ){
        Resources resources = BaseApplication.instance.getResources();
        DisplayMetrics displayMetrics = resources.getDisplayMetrics();
        return displayMetrics.widthPixels;
    }



}
